package com.shop.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shop.po.KuaiDi;
import com.shop.user.mapper.KuaiDiMapper;
import com.shop.user.service.KuaiDiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author banxia
 * @since 2023-04-02
 */
@Service
public class KuaiDiServiceImpl extends ServiceImpl<KuaiDiMapper, KuaiDi> implements KuaiDiService {

    @Autowired
    private KuaiDiMapper mapper;

    @Override
    public KuaiDi getByOrderId(Long id) {
        LambdaQueryWrapper<KuaiDi> wrapper=new LambdaQueryWrapper<>();
        wrapper.eq(KuaiDi::getOrderDetailId,id);
        KuaiDi kuaiDi = mapper.selectOne(wrapper);
        return kuaiDi;
    }


}
